package com.atguigu.mes.service.impl;

import com.atguigu.mes.entity.Machine;
import com.atguigu.mes.entity.Vo.PartswithResource;
import com.atguigu.mes.mapper.MachineMapper;
import com.atguigu.mes.service.MachineService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lei Deng
 * @since 2022-04-25
 */
@Service
public class MachineServiceImpl extends ServiceImpl<MachineMapper, Machine> implements MachineService {

    @Override
    public List<Machine> getallMachine() {
        QueryWrapper<Machine> wrapper=new QueryWrapper<>();
        return baseMapper.selectList(wrapper);
    }

    @Override
    public List<PartswithResource> getPartswithResource() {


        return baseMapper.getPartswithResource();
    }
}
